#include<iostream>
#include<string>
using namespace std;

//template<class T>
int main()
{
	string s1 = "Hello World";
	string::iterator it = s1.begin();
	while (it != s1.end())
	{
		(*it)++;
		it++;
	}
	cout << s1 << endl;

	it = s1.begin();
	while (it != s1.end())
	{
		(*it)--;
		it++;
	}
	cout << s1 << endl;


	return 0;
}
